package ke2;

public class trycatchdeta {
    public static void main(String[] args) {
        person p=new person();
        p =null;
        System.out.println(p.getname());
    }
}
class person{
    private String name="jack";
    public String getname(){
        return name;
    }
}